package cn.jiyun.service;

import cn.jiyun.mapper.UserMapper;
import cn.jiyun.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired(required = false)
    private UserMapper userMapper;
    public void addUser(User user) {
         userMapper.insert(user);
    }

    public User findByNameAndPwd(User user) {
       User u=userMapper.findByNameAndPwd();
       return user;
    }
}
